import { Entity, model, property } from '@loopback/repository';
/**
 * 点赞
 */
@model()
export class Praise extends Entity {
  @property({
    type: 'number',
    id: true,
  })
  id?: number;

  @property({
    type: 'number',
    required: true,
  })
  userId: number;

  @property({
    type: 'number',
    required: true,
  })
  postId: number;

  @property({
    type: 'date',
    required: true,
  })
  created: string;

  constructor(data?: Partial<Praise>) {
    super(data);
  }
}
